import request from '@/utils/request';

export async function getProcessByPage (params: any) {
    return request('/api/design/getProcessByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addProcess (params: any) {
    return request('/api/design/addProcess', {
    method: 'POST',
    data: params,
  });
}

export async function updateProcess (params: any) {
    return request('/api/design/updateProcess', {
    method: 'POST',
    data: params,
  });
}

export async function delProcess (params: any) {
    return request('/api/design/delProcess', {
    method: 'POST',
    data: params,
  });
}


export async function exportProcess(params: any) {
    return request('/api/design/exportProcess', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getProcessByPage, addProcess, updateProcess, delProcess, exportProcess }
